package com.wp.design.structural.command;

public class Test {
	public static void main(String[] args) {
		Course course = new Course("java精讲");
		OpenCommand openCommand = new OpenCommand(course);
		CloseCommand closeCommand = new CloseCommand(course);
		Staff staff = new Staff();
		staff.add(openCommand);
		staff.add(closeCommand);
		staff.executeCommands();
	}
}
